<template>
	<view class="flex-col page">
		<view class="flex-col group_3">
			<view class="flex-row">
				<image :src="imgUrl+'16557826692525244038.png'" class="image_6" />
				<text class="text_1">项目名称</text>
				<text class="text_2">申请使用</text>
			</view>
			<text class="text_3">您的微信头像、昵称、地区和性别信息</text>
			<text class="text_4">您可选择使用不同的个人信息登录</text>
			<view class="flex-col group_5">
				<view class="justify-between group_6">
					<view class="flex-row">
						<image :src="imgUrl+'16557826689543972652.png'" class="image_7" />
						<view class="flex-col items-start group_8">
							<text class="text_5">冰凉小手</text>
							<text class="text_6">微信个人信息</text>
						</view>
					</view>
					<image :src="imgUrl+'16557826691815169339.png'" class="image_8" />
				</view>
				<view class="justify-between group_9">
					<view class="flex-row">
						<image :src="imgUrl+'16557826691773493901.png'" class="image_9" />
						<text class="text_7">新建头像昵称</text>
					</view>
					<image :src="imgUrl+'16557826691751241146.png'" class="image_10" />
				</view>
			</view>
			<view class="flex-col group_11">
				<view class="flex-col items-center button" @click="thirdLogin('wechat')"><text class="text_8" >同意</text>
				</view>
				<view class="flex-col items-center button_1"><text class="text_9">拒绝</text></view>
			</view>
		</view>
	</view>
</template>

<script>
	import wechat from '@/shop/wechat/wechat';
	export default {
		components: {},
		data() {
			return {
				imgUrl:this.$IMG_URL,
			};
		},
		methods: {
			
			// 第三方登录
			async thirdLogin(provider) {
				// if (!this.protocol) {
				// 	this.$u.toast('请同意用户协议');
				// 	return false;
				// }
				console.log(1)
				const that = this;
				let token = '';
				switch (provider) {
					case 'wechat':
						token = await wechat.login();
						break;
					case 'alipay':
						break;
					case 'apple':
						token = await apple.appleIdOauth();
						break;
					default:
						break;
				}
				if (token) {
					that.closeAuthModal();
					that.getUserInfo(token);
				}
			},
		},
	};
</script>

<style scoped lang="scss">
	.page {
		background-color: #ffffffff;
		width: 100%;
		overflow-y: auto;
		overflow-x: hidden;
		height: 100%;
	}

	.group_3 {
		padding: 79rpx 32rpx 29rpx;
		flex: 1 1 auto;
		overflow-y: auto;
	}

	.text_3 {
		margin-top: 43rpx;
		align-self: flex-start;
		color: #333333;
		font-size: 36rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 43rpx;
	}

	.text_4 {
		margin-top: 74rpx;
		align-self: flex-start;
		color: #333333;
		font-size: 30rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 35rpx;
	}

	.group_5 {
		margin-top: 41rpx;
		border-top: solid 1rpx #eeeeee;
		border-bottom: solid 1rpx #eeeeee;
	}

	.group_11 {
		padding: 140rpx 171rpx;
	}

	.image_6 {
		margin-top: 5rpx;
		border-radius: 40rpx;
		width: 40rpx;
		height: 40rpx;
	}

	.text_1 {
		margin-left: 12rpx;
		margin-bottom: 7rpx;
		color: #333333;
		font-size: 32rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 38rpx;
	}

	.text_2 {
		margin-left: 13.5rpx;
		margin-bottom: 7rpx;
		color: #333333;
		font-size: 32rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 38rpx;
	}

	.group_6 {
		padding: 29rpx 0 32rpx;
		border-bottom: solid 1rpx #eeeeee;
	}

	.group_9 {
		padding: 32rpx 0;
	}

	.button {
		padding: 22rpx 0 34rpx;
		background-color: #18be3e;
		border-radius: 16rpx;
	}

	.button_1 {
		margin-top: 40rpx;
		padding: 22rpx 0 34rpx;
		background-color: #f6f7f9;
		border-radius: 16rpx;
	}

	.image_8 {
		align-self: center;
		width: 26rpx;
		height: 22rpx;
	}

	.image_10 {
		align-self: center;
		width: 10rpx;
		height: 20rpx;
	}

	.text_8 {
		color: #ffffff;
		font-size: 32rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 38rpx;
	}

	.text_9 {
		color: #18be3e;
		font-size: 32rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 38rpx;
	}

	.image_7 {
		margin-top: 3rpx;
		border-radius: 8rpx;
		width: 88rpx;
		height: 88rpx;
	}

	.group_8 {
		margin-left: 30rpx;
		margin-bottom: 8rpx;
	}

	.image_9 {
		flex-shrink: 0;
		width: 88rpx;
		height: 88rpx;
	}

	.text_7 {
		margin-left: 30rpx;
		margin-top: 19rpx;
		color: #333333;
		font-size: 32rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 38rpx;
	}

	.text_5 {
		color: #333333;
		font-size: 32rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 38rpx;
	}

	.text_6 {
		margin-top: 17rpx;
		color: #333333;
		font-size: 24rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 28rpx;
	}
</style>
